Home:ALL Converter>ERROR Invalid option specification - AWS Elasticbeanstalk - Django

ERROR Invalid option specification - AWS Elasticbeanstalk - Django

Ask Time:2020-08-07T05:24:22         Author:Jaron

Json Formatter

I am trying to set up my Django project using the AWS CLI service but I get the following error

ERROR   Invalid option specification (Namespace: 'aws:elasticbeanstalk:container:python', OptionName: 'StaticFiles'): Unknown configuration setting.

I work on Windows and follow these instructions: https://www.1strategy.com/blog/2017/05/23/tutorial-django-elastic-beanstalk/. This is from 2017 and I have already made some adjustments, as the AWS services is constantly being updated

But now something seems to be wrong in the python.config file. Maybe the name of the command has been changed. I couldn't find much about that anyway.

This is what my python.config file looks like:

container_commands:
  01_migrate:
    command: "python manage.py migrate"
    leader_only: true
  02_collectstatic:
    command: "python manage.py collectstatic --noinput"


option_settings:
  "aws:elasticbeanstalk:application:environment":
    DJANGO_SETTINGS_MODULE: "Whisky.settings"
    PYTHONPATH: "$PYTHONPATH"
  "aws:elasticbeanstalk:container:python":
    WSGIPath: "Whisky/wsgi.py"
    StaticFiles: "/static/=www/static/"

packages:
  yum:
    postgresql95-devel: []

I hope you can help me

Author:Jaron,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/63291957/error-invalid-option-specification-aws-elasticbeanstalk-django
yy